var t = getApp();

Page({
    data: {
        active: 0,
        list: [],
        isLoadMore: !0,
        page: 1,
        total_page: 0,
        signMember: {}
    },
    getData: function() {
        var a = this;
        t._getNetWork({
            url: t.getNetAddresss("plugin.sign-buy.frontend.asset-record.yuan-bao-feng"),
            success: function(e) {
                var n = e.data, s = n.result, r = n.msg, o = n.data, i = o.signMember, g = o.record;
                if (0 == s) return t.tips(r);
                a.setData({
                    list: g.data,
                    current_page: g.current_page,
                    last_page: g.last_page,
                    signMember: i
                });
            }
        });
    },
    getMoreData: function() {
        var a = this;
        if (!(this.data.current_page >= this.data.last_page)) {
            var e = this.data.current_page + 1;
            t._getNetWork({
                url: t.getNetAddresss("plugin.sign-buy.frontend.asset-record.yuan-bao-feng-record"),
                data: {
                    page: e
                },
                success: function(e) {
                    var n = e.data, s = n.result, r = n.msg, o = n.data;
                    if (0 == s) return t.tips(r);
                    var i = a.data.list.concat(o.data);
                    a.setData({
                        list: i,
                        current_page: o.current_page,
                        last_page: o.last_page
                    });
                }
            });
        }
    },
    onLoad: function(t) {
        this.getData();
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {
        this.getMoreData();
    },
    onShareAppMessage: function() {}
});